<?php
/**
 * Created by PhpStorm.
 * User: nhson219
 * Date: 8/25/14
 * Time: 11:23 AM
 */
$project = $projects->row();
?>
<script src="<?php echo base_url()?>/app/js/star-rating.min.js" type="text/javascript"></script>
<div class="table-list-project list-freelancer-bid">
<table class="table x8-16">
    <tr class="x8-16-b">
        <td class="col-lg-6 col-md-6">
            <?php echo $this->lang->line("Project Bids");?> (<span class="num-bid" style="color:#22b88d"><?php echo getNumBid($project->id);?></span>)
        </td>
        <td class="col-lg-2 col-md-2">
            <?php echo $this->lang->line("Bids")?>
        </td>
        <td class="col-lg-2 col-md-2">
            <?php echo $this->lang->line("DeliveryTime")?>
        </td>
        <td class="col-lg-2 col-md-2">
        	<?php if($project->project_status == 0){?>
            <button type="button" class="btn btn-default btn-bid2" style="margin-top: -8px"><?php echo $this->lang->line("Place Bid")?></button>
            <?php } ?>
        </td>
    </tr>
    <?php
        if($listBid->num_rows() > 0){
            foreach($listBid->result() as $item){
    ?>
    <tr>
        <td class="">
            <div class="col-lg-12 col-md-12 no-padding">
                <div class="col-lg-5 col-md-5 col-sm-5 col-xs-12 no-padding">
                    <a href="#"><img class="img-responsive" src="<?php if ($item->logo != '') echo uimage_url($item->logo); else echo image_default(); ?>"></a>
                </div>
                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 info-user-footer info-user-footer2">
                    <div class="user-row"><span><?php echo $item->user_name?></span><span class="col-right">HCMC, CT</span></div>
                    <div class="user-row"><span><?php echo $this->lang->line('complaints')?></span><span class="col-right complaints">0/5</span></div>
                    <div class="user-row">
                        <span><input id="preview-user" value="0" type="number" data-star-captions="{}" data-default-caption="{rating}" class="rating" min=0 max=5  data-size="xs" ></span>
                        <span class="col-right">0 reviews</span>
                    </div>
                    <div class="user-row"><span><?php echo $this->lang->line('spend')?></span><span class="col-right price">$5324</span></div>
                    <div class="user-row"><span class="col-right"><a href="#"><?php echo $this->lang->line('Project report violations')?></a></span></div>
                </div>
            </div>
        </td>
        <td class="x8-24-b padding-table-freelancer-bid">
            <span class="unit-price-bid">$<?php echo $item->bid_amount;?></span>
        </td>
        <td class="x8-16 padding-table-freelancer-bid">
            <?php echo $item->bid_days;?> ngày
        </td>
        <td class="">
        </td>
    </tr>
    <?php } }else{ ?>
        <tr>
            <td style="background: #fff">
                <?php echo $this->lang->line('No Bid'); ?>
            </td>
        </tr>
    <?php } ?>

</table>
</div> <!-- list-freelancer-bid -->
<div class="freelancer-pagination text-center col-lg-12 col-md-12 col-sm-12">
    <?php if(isset($pagination)) echo $pagination;?>
</div> <!-- freelancer pagination -->
<div>
	<?php if($project->project_status == 0){?>
    <button type="button" class="btn btn-default btn-bid2" style="margin-top: -8px"><?php echo $this->lang->line("Place Bid")?></button>
    <?php } ?>
</div>








